package cloud.hadoop.bds.controller;

import cloud.hadoop.bds.model.common.Result;
import cloud.hadoop.bds.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/course")
public class CourseController {

    @Autowired
    CourseService courseService;

    /**
     *
     * @return
     */
    @GetMapping("/getCourse")
    public Result getCourse(){
        return courseService.selectCourse();
    }
}
